Update run.py
Browse files
run.py
CHANGED
|
@@ -111,7 +111,8 @@ def response(prompt, history, temperature=0.9, max_new_tokens=500, top_p=0.95, r
|
|
| 111 |
url_extracted = "<div id='url'></div>" # Placeholder for URL extraction
|
| 112 |
|
| 113 |
print(f"Working with URL: {url_extracted}")
|
| 114 |
-
|
|
|
|
| 115 |
temperature = float(temperature)
|
| 116 |
if temperature < 1e-2: temperature = 1e-2
|
| 117 |
top_p = float(top_p)
|
|
|
|
| 111 |
url_extracted = "<div id='url'></div>" # Placeholder for URL extraction
|
| 112 |
|
| 113 |
print(f"Working with URL: {url_extracted}")
|
| 114 |
+
headers = gr.Request.headers
|
| 115 |
+
print(headers)
|
| 116 |
temperature = float(temperature)
|
| 117 |
if temperature < 1e-2: temperature = 1e-2
|
| 118 |
top_p = float(top_p)
|