mgokg commited on
Commit
ede4b3b
·
verified ·
1 Parent(s): 3891a42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -22,11 +22,11 @@ prompt = ""
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)
 
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)