This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from llama_index import SimpleDirectoryReader, GPTListIndex, LLMPredictor, PromptHelper, ServiceContext, GPTSimpleVectorIndex | |
from langchain.chat_models import ChatOpenAI | |
from langchain.llms import OpenAI | |
import gradio as gr | |
import sys | |
import os | |
""" | |
Requirement: | |
langchain==0.0.153 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Test { | |
public static float toFahrenheit(int celcius) { | |
return (celcius * 9 / 5) + 32; | |
} | |
public static float toCelcius(int fahrenheit) { | |
return (fahrenheit - 32) * 5 / 9; | |
} |