NickyNicky commited on
Commit
415fd6a
Β·
verified Β·
1 Parent(s): dc258d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -65,14 +65,7 @@ def generate_text(prompt, max_length=2100):
65
 
66
 
67
  #EXAMPLE
68
- input_text = f'''<bos><start_of_turn>system
69
- You are a helpful AI assistant.
70
- Responde en formato json.
71
- Eres un agente experto en la normativa aeronautica Colombiana.<end_of_turn>
72
- <start_of_turn>user
73
- ΒΏ{prompt}?<end_of_turn>
74
- <start_of_turn>model
75
- '''
76
 
77
  inputs = tokenizer.encode(input_text,
78
  return_tensors="pt",
@@ -130,4 +123,4 @@ iface = gr.Interface(
130
  examples=ejemplos,
131
  )
132
 
133
- iface.queue(max_size=14).launch() # share=True,debug=True
 
65
 
66
 
67
  #EXAMPLE
68
+ input_text = f'''<bos><start_of_turn>system\nYou are a helpful AI assistant.\nResponde en formato json.\nEres un agente experto en la normativa aeronautica Colombiana.<end_of_turn>\n<start_of_turn>user\nΒΏ{prompt}?<end_of_turn>\n<start_of_turn>model\n'''
 
 
 
 
 
 
 
69
 
70
  inputs = tokenizer.encode(input_text,
71
  return_tensors="pt",
 
123
  examples=ejemplos,
124
  )
125
 
126
+ iface.queue(max_size=14).launch(debug=True) # share=True,debug=True