Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import pip
|
3 |
pip.main(['install', 'transformers'])
|
|
|
4 |
model_name_or_path='dgnk007/eagle'
|
5 |
def generate_response(message):
|
6 |
prompt_template=f"Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n {message}\n\n### Response:\n"
|
|
|
1 |
import gradio as gr
|
2 |
import pip
|
3 |
pip.main(['install', 'transformers'])
|
4 |
+
from transformers import pipeline
|
5 |
model_name_or_path='dgnk007/eagle'
|
6 |
def generate_response(message):
|
7 |
prompt_template=f"Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n {message}\n\n### Response:\n"
|