Update app.py
Browse files
app.py
CHANGED
|
@@ -15,11 +15,10 @@ def answer(question):
|
|
| 15 |
]
|
| 16 |
)
|
| 17 |
return response.choices[0].message.content
|
| 18 |
-
demo = gr.
|
| 19 |
fn=answer,
|
| 20 |
inputs=gr.Textbox(label="Ask a chemistry question"),
|
| 21 |
outputs=gr.Textbox(label="AI Response"),
|
| 22 |
title="VR-LAB"
|
| 23 |
)
|
| 24 |
demo.launch()
|
| 25 |
-
|
|
|
|
| 15 |
]
|
| 16 |
)
|
| 17 |
return response.choices[0].message.content
|
| 18 |
+
demo = gr.Interface(
|
| 19 |
fn=answer,
|
| 20 |
inputs=gr.Textbox(label="Ask a chemistry question"),
|
| 21 |
outputs=gr.Textbox(label="AI Response"),
|
| 22 |
title="VR-LAB"
|
| 23 |
)
|
| 24 |
demo.launch()
|
|
|