Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -10,11 +10,6 @@ client = InferenceClient(
|
|
| 10 |
|
| 11 |
prompt = "Hello world"
|
| 12 |
|
| 13 |
-
response = client
|
| 14 |
-
json={
|
| 15 |
-
"inputs": prompt,
|
| 16 |
-
"parameters": {"max_new_tokens": 50}
|
| 17 |
-
}
|
| 18 |
-
)
|
| 19 |
|
| 20 |
-
print(
|
|
|
|
| 10 |
|
| 11 |
prompt = "Hello world"
|
| 12 |
|
| 13 |
+
response = client(prompt) # <-- universal call
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
+
print(response)
|