Spaces:
Build error
Build error
Update app.py
Browse files
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|