Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,9 +20,7 @@ OpenAI doesnt let you use Agents without paying for it, so I made you an interfa
|
|
20 |
Big thanks to 🤗Huggingface Organisation for the🫂Community Grant"""
|
21 |
|
22 |
examples = [
|
23 |
-
["My Eucalyptus tree is struggling outside in the cold weather in Europe",True, None]
|
24 |
-
["My calathea house plant is yellowing.",True, None],
|
25 |
-
["We have a cactus at work that suddenly started yellowing and wilting.",True, None]
|
26 |
]
|
27 |
|
28 |
load_dotenv()
|
@@ -31,7 +29,7 @@ assistant_id = os.getenv('ASSISTANT_ID')
|
|
31 |
client = openai.OpenAI(api_key=openai.api_key)
|
32 |
thread_ids = {}
|
33 |
current_thread_id = None
|
34 |
-
gradio_client = Client("https://tonic1-tulu.hf.space/--replicas/
|
35 |
|
36 |
def ask_openai(question, start_new_thread=True, selected_thread_id=None):
|
37 |
global thread_ids
|
|
|
20 |
Big thanks to 🤗Huggingface Organisation for the🫂Community Grant"""
|
21 |
|
22 |
examples = [
|
23 |
+
["My Eucalyptus tree is struggling outside in the cold weather in Europe",True, None]
|
|
|
|
|
24 |
]
|
25 |
|
26 |
load_dotenv()
|
|
|
29 |
client = openai.OpenAI(api_key=openai.api_key)
|
30 |
thread_ids = {}
|
31 |
current_thread_id = None
|
32 |
+
gradio_client = Client("https://tonic1-tulu.hf.space/--replicas/cdnbn/")
|
33 |
|
34 |
def ask_openai(question, start_new_thread=True, selected_thread_id=None):
|
35 |
global thread_ids
|