Spaces:
Sleeping
Sleeping
GabrielSalem
commited on
Commit
•
a864674
1
Parent(s):
68bdc83
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def get_bot_response(file, prompt):
|
|
47 |
input_text = f"{prompt}\n\nFile Content:\n{file_content}"
|
48 |
|
49 |
# Call Hugging Face API for text generation
|
50 |
-
response = client.text_generation(prompt=input_text, max_new_tokens=
|
51 |
|
52 |
return response
|
53 |
except Exception as e:
|
|
|
47 |
input_text = f"{prompt}\n\nFile Content:\n{file_content}"
|
48 |
|
49 |
# Call Hugging Face API for text generation
|
50 |
+
response = client.text_generation(prompt=input_text, max_new_tokens=10000)
|
51 |
|
52 |
return response
|
53 |
except Exception as e:
|