Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
from huggingface_hub import InferenceClient
|
2 |
import gradio as gr
|
3 |
-
import random
|
4 |
import prompts
|
5 |
client = InferenceClient(
|
6 |
"mistralai/Mixtral-8x7B-Instruct-v0.1"
|
@@ -21,7 +21,7 @@ agents =[
|
|
21 |
def generate(
|
22 |
prompt, history, agent_name=agents[0], sys_prompt="", temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0,
|
23 |
):
|
24 |
-
seed =
|
25 |
|
26 |
agent=prompts.WEB_DEV
|
27 |
if agent_name == "WEB_DEV":
|
|
|
1 |
from huggingface_hub import InferenceClient
|
2 |
import gradio as gr
|
3 |
+
import random
|
4 |
import prompts
|
5 |
client = InferenceClient(
|
6 |
"mistralai/Mixtral-8x7B-Instruct-v0.1"
|
|
|
21 |
def generate(
|
22 |
prompt, history, agent_name=agents[0], sys_prompt="", temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0,
|
23 |
):
|
24 |
+
seed = random.randint(1,1111111111111111)
|
25 |
|
26 |
agent=prompts.WEB_DEV
|
27 |
if agent_name == "WEB_DEV":
|