alibayram commited on
Commit
1fe46bf
·
1 Parent(s): 8d6020c

space update

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -27,9 +27,7 @@ def load_model():
27
  num_heads=num_heads,
28
  context_length=context_length,
29
  num_layers=num_layers
30
- )
31
- print("✅ Model loaded successfully! vocab size:", len(u_model.vocab))
32
-
33
  # Load the trained weights if available
34
  model_path = "v1/u_model.pth"
35
 
@@ -155,7 +153,14 @@ demo = gr.ChatInterface(
155
  ),
156
  ],
157
  title="🤖 Usta Model Chat",
158
- description="Chat with a custom transformer language model built from scratch! This model specializes in geographical knowledge including countries, capitals, and cities."
 
 
 
 
 
 
 
159
  )
160
 
161
  if __name__ == "__main__":
 
27
  num_heads=num_heads,
28
  context_length=context_length,
29
  num_layers=num_layers
30
+ )
 
 
31
  # Load the trained weights if available
32
  model_path = "v1/u_model.pth"
33
 
 
153
  ),
154
  ],
155
  title="🤖 Usta Model Chat",
156
+ description="Chat with a custom transformer language model built from scratch! This model specializes in geographical knowledge including countries, capitals, and cities.",
157
+ examples=[
158
+ "the capital of france",
159
+ "tell me about spain",
160
+ "what is the capital of united states",
161
+ "paris is in",
162
+ "germany and its capital"
163
+ ]
164
  )
165
 
166
  if __name__ == "__main__":