Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,8 +16,8 @@ def greet_json():
|
|
| 16 |
|
| 17 |
|
| 18 |
def generate(item: Item):
|
| 19 |
-
return "Claim: " + item['claim']
|
| 20 |
-
|
| 21 |
|
| 22 |
|
| 23 |
@app.post("/generate/")
|
|
|
|
| 16 |
|
| 17 |
|
| 18 |
def generate(item: Item):
|
| 19 |
+
# return "Claim: " + item['claim'] # python
|
| 20 |
+
return "Claim: " + item.claim # huggingface space
|
| 21 |
|
| 22 |
|
| 23 |
@app.post("/generate/")
|