Leyo commited on
Commit
6c67beb
1 Parent(s): bc1a623

Update app_dialogue.py

Browse files
Files changed (1) hide show
  1. app_dialogue.py +13 -0
app_dialogue.py CHANGED
@@ -243,6 +243,19 @@ def model_inference(
243
  print("-----")
244
 
245
 
 
 
 
 
 
 
 
 
 
 
 
 
 
246
  def flag_dope(
247
  model_selector,
248
  chat_history,
 
243
  print("-----")
244
 
245
 
246
+ FEATURES = datasets.Features(
247
+ {
248
+ "model_selector": datasets.Value("string"),
249
+ "images": datasets.Sequence(datasets.Image(decode=True)),
250
+ "conversation": datasets.Sequence({"User": datasets.Value("string"), "Assistant": datasets.Value("string")}),
251
+ "decoding_strategy": datasets.Value("string"),
252
+ "temperature": datasets.Value("float32"),
253
+ "max_new_tokens": datasets.Value("int32"),
254
+ "repetition_penalty": datasets.Value("float32"),
255
+ "top_p": datasets.Value("int32"),
256
+ }
257
+ )
258
+
259
  def flag_dope(
260
  model_selector,
261
  chat_history,