DmitryYarov commited on
Commit
8f8c93a
·
verified ·
1 Parent(s): f57a4e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -13
app.py CHANGED
@@ -5,16 +5,4 @@ def predict(prompt):
5
  completion = model(prompt)[0]["generated_text"]
6
  return completion
7
 
8
- gr.Interface(fn=predict, inputs="text", outputs="text").launch()
9
- # import gradio as gr
10
-
11
- # def greet(name, intensity):
12
- # return "Hello, " + name + "!" * int(intensity)
13
-
14
- # demo = gr.Interface(
15
- # fn=greet,
16
- # inputs=["text", "slider"],
17
- # outputs=["text"],
18
- # )
19
-
20
- demo.launch()
 
5
  completion = model(prompt)[0]["generated_text"]
6
  return completion
7
 
8
+ gr.Interface(fn=predict, inputs="text", outputs="text").launch(share=True)