Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def responsevote(
|
|
100 |
output = ""
|
101 |
for response in stream:
|
102 |
output += response.token.text
|
103 |
-
print(output)
|
104 |
sentence_lower = output.lower()
|
105 |
# Check if the word 'nein' is in the sentence
|
106 |
if 'ja' in sentence_lower:
|
@@ -212,7 +212,7 @@ def extract_ip_and_device(headers_obj):
|
|
212 |
return ip_address, device_info
|
213 |
|
214 |
def responsefull(
|
215 |
-
request: gr.Request,prompt, history,selected_option,temperature=0.9, max_new_tokens=
|
216 |
):
|
217 |
temperature = float(temperature)
|
218 |
if temperature < 1e-2: temperature = 1e-2
|
|
|
100 |
output = ""
|
101 |
for response in stream:
|
102 |
output += response.token.text
|
103 |
+
#print(output)
|
104 |
sentence_lower = output.lower()
|
105 |
# Check if the word 'nein' is in the sentence
|
106 |
if 'ja' in sentence_lower:
|
|
|
212 |
return ip_address, device_info
|
213 |
|
214 |
def responsefull(
|
215 |
+
request: gr.Request,prompt, history,selected_option,temperature=0.9, max_new_tokens=500, top_p=0.95, repetition_penalty=1.0,
|
216 |
):
|
217 |
temperature = float(temperature)
|
218 |
if temperature < 1e-2: temperature = 1e-2
|