Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ client = InferenceClient()
|
|
10 |
|
11 |
async def generate_text(prompt):
|
12 |
# Use the Hugging Face client to generate text asynchronously
|
13 |
-
response = await client.text_generation(model=model_id,
|
14 |
return response['generated_text']
|
15 |
|
16 |
# Create Gradio interface
|
|
|
10 |
|
11 |
async def generate_text(prompt):
|
12 |
# Use the Hugging Face client to generate text asynchronously
|
13 |
+
response = await client.text_generation(model=model_id, text=prompt)
|
14 |
return response['generated_text']
|
15 |
|
16 |
# Create Gradio interface
|