Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -8,4 +8,18 @@ def query(payload, model_id, api_token):
|
|
8 |
|
9 |
model_id = "distilbert-base-uncased"
|
10 |
api_token = "hf_XXXXXXXX" # get yours at hf.co/settings/tokens
|
11 |
-
data = query("The goal of life is [MASK].", model_id, api_token)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
model_id = "distilbert-base-uncased"
|
10 |
api_token = "hf_XXXXXXXX" # get yours at hf.co/settings/tokens
|
11 |
+
data = query("The goal of life is [MASK].", model_id, api_token)
|
12 |
+
|
13 |
+
#u0dar before changing page!
|
14 |
+
#gradioblocks interface template
|
15 |
+
gradio as gr
|
16 |
+
|
17 |
+
|
18 |
+
def greet(name):
|
19 |
+
return "Hello " + name
|
20 |
+
|
21 |
+
|
22 |
+
# We instantiate the Textbox class
|
23 |
+
textbox = gr.Textbox(label="Type your name here:", placeholder="John Doe", lines=2)
|
24 |
+
|
25 |
+
gr.Interface(fn=greet, inputs=textbox, outputs="text").launch()
|