Update app.py
Browse files
app.py
CHANGED
|
@@ -1,16 +1,3 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
pipe = pipeline("question-answering", model="NYTK/translation-m2m100-1.2B-multi12-hungarian")
|
| 6 |
-
|
| 7 |
-
def predict(text):
|
| 8 |
-
return pipe(text)[0]["question-answering"]
|
| 9 |
-
|
| 10 |
-
demo = gr.Interface(
|
| 11 |
-
fn=predict,
|
| 12 |
-
inputs='text',
|
| 13 |
-
outputs='text',
|
| 14 |
-
)
|
| 15 |
-
|
| 16 |
-
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
gr.Interface.load("models/NYTK/PULI-GPT-2").launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|