Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ FakeNewsAggregator = client.beta.assistants.retrieve(os.getenv('OPENAI_ASSISTANT
|
|
| 30 |
thread= client.beta.threads.create()
|
| 31 |
|
| 32 |
@traceable # Auto-trace this function
|
| 33 |
-
def
|
| 34 |
|
| 35 |
global FakeNewsAggregator
|
| 36 |
global thread
|
|
@@ -60,12 +60,12 @@ def FakeNewsAggregatorRequest(text):
|
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
-
gr.Interface(fn=
|
| 64 |
inputs=["text"],
|
| 65 |
outputs=["text"],
|
| 66 |
flagging_mode='never',
|
| 67 |
-
title="
|
| 68 |
-
description="I am virtual assistant to help you
|
| 69 |
theme="soft",
|
| 70 |
-
examples=['
|
| 71 |
).launch(share=False)
|
|
|
|
| 30 |
thread= client.beta.threads.create()
|
| 31 |
|
| 32 |
@traceable # Auto-trace this function
|
| 33 |
+
def IntroPythonTutorRequest(text):
|
| 34 |
|
| 35 |
global FakeNewsAggregator
|
| 36 |
global thread
|
|
|
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
+
gr.Interface(fn=IntroPythonTutorRequest,
|
| 64 |
inputs=["text"],
|
| 65 |
outputs=["text"],
|
| 66 |
flagging_mode='never',
|
| 67 |
+
title="Intro to Python Tutor",
|
| 68 |
+
description="I am virtual assistant to help you practice basic Python ",
|
| 69 |
theme="soft",
|
| 70 |
+
examples=['Brief intro to Python','Variables in Python', '5 Coding exercises']
|
| 71 |
).launch(share=False)
|