Elijahbodden commited on
Commit
0886db3
1 Parent(s): b241d0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -7
app.py CHANGED
@@ -6,9 +6,6 @@ import gradio as gr
6
  from llama_cpp import Llama
7
  from transformers import AutoTokenizer
8
  from huggingface_hub import upload_file
9
- import json
10
- from uuid import uuid4
11
- import logging
12
 
13
 
14
  model_id = "Elijahbodden/eliGPTv1.3"
@@ -71,8 +68,6 @@ def respond(
71
  response = ""
72
 
73
  print(tokenizer.apply_chat_template(messages, tokenize=False))
74
- with open('/data/log.txt', 'a') as f:
75
- print(tokenizer.apply_chat_template(messages, tokenize=False), file=f)
76
 
77
  convo = tokenizer.apply_chat_template(messages, tokenize=True)
78
  for message in model.create_completion(
@@ -93,8 +88,6 @@ def respond(
93
  response += token
94
  yield response
95
  print(response)
96
- with open('/data/log.txt', 'a') as f:
97
- print(response, file=f)
98
 
99
  ci = gr.ChatInterface(
100
  respond,
 
6
  from llama_cpp import Llama
7
  from transformers import AutoTokenizer
8
  from huggingface_hub import upload_file
 
 
 
9
 
10
 
11
  model_id = "Elijahbodden/eliGPTv1.3"
 
68
  response = ""
69
 
70
  print(tokenizer.apply_chat_template(messages, tokenize=False))
 
 
71
 
72
  convo = tokenizer.apply_chat_template(messages, tokenize=True)
73
  for message in model.create_completion(
 
88
  response += token
89
  yield response
90
  print(response)
 
 
91
 
92
  ci = gr.ChatInterface(
93
  respond,