Update app.py
Browse files
app.py
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def answer(question):
|
| 4 |
+
return f"You asked: {question}"
|
| 5 |
+
|
| 6 |
+
app = gr.Interface(
|
| 7 |
+
fn=answer,
|
| 8 |
+
inputs=gr.Textbook(label="Ask a chemistry question"),
|
| 9 |
+
ouputs=gr.Textbook(label="Response"),
|
| 10 |
+
title="VR-LAB"
|
| 11 |
+
)
|
| 12 |
+
app.lauch()
|