Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -45,6 +45,9 @@ def chat_inf(system_prompt,prompt,history,seed,temp,tokens,top_p,rep_p):
|
|
45 |
history.append((prompt,output))
|
46 |
yield history
|
47 |
|
|
|
|
|
|
|
48 |
def check_rand(inp,val):
|
49 |
if inp==True:
|
50 |
return gr.Slider(label="Seed", minimum=1, maximum=1111111111111111, value=random.randint(1,1111111111111111))
|
|
|
45 |
history.append((prompt,output))
|
46 |
yield history
|
47 |
|
48 |
+
def clear_fn():
|
49 |
+
return None
|
50 |
+
|
51 |
def check_rand(inp,val):
|
52 |
if inp==True:
|
53 |
return gr.Slider(label="Seed", minimum=1, maximum=1111111111111111, value=random.randint(1,1111111111111111))
|