Spaces:
Runtime error
Runtime error
thepolymerguy
commited on
Commit
•
f88e4b6
1
Parent(s):
0b55fc4
Update app.py
Browse files
app.py
CHANGED
@@ -254,7 +254,7 @@ def run_model(userin, dropd, temp, top_p, tokens):
|
|
254 |
|
255 |
response = f"Response{outputs}"
|
256 |
|
257 |
-
f = open("Model_bert/log.log", "a")
|
258 |
count = 1
|
259 |
f.write(f'{count}\n')
|
260 |
f.close()
|
@@ -293,7 +293,7 @@ def prosecute(application, priorart, temp, top_p, tokens):
|
|
293 |
|
294 |
response = f"Response{outputs}"
|
295 |
|
296 |
-
f = open("Model_bert/log.log", "a")
|
297 |
count = 1
|
298 |
f.write(f'{count}\n')
|
299 |
f.close()
|
@@ -329,7 +329,7 @@ def ideator(userin, temp, top_p, tokens):
|
|
329 |
|
330 |
response = f"Response{outputs}"
|
331 |
|
332 |
-
f = open("Model_bert/log.log", "a")
|
333 |
count = 1
|
334 |
f.write(f'{count}\n')
|
335 |
f.close()
|
@@ -364,7 +364,7 @@ def Chat(userin, temp, top_p, tokens):
|
|
364 |
|
365 |
response = f"Response{outputs}"
|
366 |
|
367 |
-
f = open("Model_bert/log.log", "a")
|
368 |
count = 1
|
369 |
f.write(f'{count}\n')
|
370 |
f.close()
|
|
|
254 |
|
255 |
response = f"Response{outputs}"
|
256 |
|
257 |
+
f = open(os.path.join(os.path.dirname(__file__), "Model_bert/log.log"), "a")
|
258 |
count = 1
|
259 |
f.write(f'{count}\n')
|
260 |
f.close()
|
|
|
293 |
|
294 |
response = f"Response{outputs}"
|
295 |
|
296 |
+
f = open(os.path.join(os.path.dirname(__file__), "Model_bert/log.log"), "a")
|
297 |
count = 1
|
298 |
f.write(f'{count}\n')
|
299 |
f.close()
|
|
|
329 |
|
330 |
response = f"Response{outputs}"
|
331 |
|
332 |
+
f = open(os.path.join(os.path.dirname(__file__), "Model_bert/log.log"), "a")
|
333 |
count = 1
|
334 |
f.write(f'{count}\n')
|
335 |
f.close()
|
|
|
364 |
|
365 |
response = f"Response{outputs}"
|
366 |
|
367 |
+
f = open(os.path.join(os.path.dirname(__file__), "Model_bert/log.log"), "a")
|
368 |
count = 1
|
369 |
f.write(f'{count}\n')
|
370 |
f.close()
|