Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -10,6 +10,11 @@ client = InferenceClient(
|
|
| 10 |
|
| 11 |
prompt = "Hello world"
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
-
print(response)
|
|
|
|
| 10 |
|
| 11 |
prompt = "Hello world"
|
| 12 |
|
| 13 |
+
# You can also specify additional parameters
|
| 14 |
+
response = client.text_generation(
|
| 15 |
+
prompt=prompt,
|
| 16 |
+
max_new_tokens=50,
|
| 17 |
+
temperature=0.7
|
| 18 |
+
)
|
| 19 |
|
| 20 |
+
print(response)
|