444
Browse files
app.py
CHANGED
|
@@ -14,10 +14,9 @@ def greet(name):
|
|
| 14 |
headers = {"Content-Type": "application/json"}
|
| 15 |
|
| 16 |
response = requests.post(url, data=json.dumps(payload), headers=headers)
|
| 17 |
-
|
| 18 |
-
print(result)
|
| 19 |
|
| 20 |
-
return "Hello " + name + "!!"
|
| 21 |
|
| 22 |
iface = gr.Interface(fn=greet, inputs=["text"], outputs="text")
|
| 23 |
iface.launch()
|
|
|
|
| 14 |
headers = {"Content-Type": "application/json"}
|
| 15 |
|
| 16 |
response = requests.post(url, data=json.dumps(payload), headers=headers)
|
| 17 |
+
|
|
|
|
| 18 |
|
| 19 |
+
return "Hello " + name + "!!"
|
| 20 |
|
| 21 |
iface = gr.Interface(fn=greet, inputs=["text"], outputs="text")
|
| 22 |
iface.launch()
|