Spaces:
Sleeping
Sleeping
Commit
·
5aaef6c
1
Parent(s):
5dae046
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from transformers import pipeline
|
3 |
+
from ApiCall import *
|
4 |
+
|
5 |
+
api_test = ApiCall().getData();
|
6 |
+
def greet(name):
|
7 |
+
|
8 |
+
return ("funktioniert")
|
9 |
+
|
10 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
11 |
+
iface.launch()
|