Update run.py
Browse files
run.py
CHANGED
@@ -95,7 +95,7 @@ def format_prompt(message, history):
|
|
95 |
print(prompt)
|
96 |
return prompt
|
97 |
|
98 |
-
def response(prompt, history, temperature=0.9, max_new_tokens=500, top_p=0.95, repetition_penalty=1.0
|
99 |
global_url = "" # Initialize URL variable
|
100 |
# JavaScript code to extract URL from the browser
|
101 |
js_code = """
|
|
|
95 |
print(prompt)
|
96 |
return prompt
|
97 |
|
98 |
+
def response(request: gr.Request,prompt, history, temperature=0.9, max_new_tokens=500, top_p=0.95, repetition_penalty=1.0):
|
99 |
global_url = "" # Initialize URL variable
|
100 |
# JavaScript code to extract URL from the browser
|
101 |
js_code = """
|