Update app.py
Browse files
app.py
CHANGED
@@ -22,11 +22,11 @@ prompt = ""
|
|
22 |
def get_prompt():
|
23 |
return prompt
|
24 |
|
25 |
-
|
26 |
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
|
31 |
if __name__ == "__main__":
|
32 |
uvicorn.run(app, host="0.0.0.0", port=8000)
|
|
|
22 |
def get_prompt():
|
23 |
return prompt
|
24 |
|
25 |
+
gr_interface = gr.Interface(fn=get_prompt, inputs=[], outputs="text", live=True)
|
26 |
|
27 |
+
@app.get("/")
|
28 |
+
def read_root():
|
29 |
+
return gr_interface.launch(share=True)
|
30 |
|
31 |
if __name__ == "__main__":
|
32 |
uvicorn.run(app, host="0.0.0.0", port=8000)
|