Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
-
client = pipeline("text-generation", model="upstage/Llama-2-70b-instruct", api_url=API_URL)
|
| 5 |
|
| 6 |
def format_chat_prompt(message, chat_history, instruction):
|
| 7 |
prompt = f"System:{instruction}"
|
|
|
|
| 1 |
+
import os
|
| 2 |
import gradio as gr
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
+
client = pipeline("text-generation", model="upstage/Llama-2-70b-instruct", api_url=os.environ['API_URL'])
|
| 6 |
|
| 7 |
def format_chat_prompt(message, chat_history, instruction):
|
| 8 |
prompt = f"System:{instruction}"
|