Aksh1t commited on
Commit
f4909a4
1 Parent(s): bbd29a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, inputs=prompt)
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