merve HF staff commited on
Commit
d05d42f
β€’
1 Parent(s): 3484a4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -63,7 +63,11 @@ class ArgillaLogger(FlaggingCallback):
63
  rg.log(name=self.dataset_name, records=create_record(text, flag_option))
64
 
65
 
66
-
 
 
 
 
67
 
68
  gr.Interface(
69
  load_data,
@@ -75,7 +79,7 @@ gr.Interface(
75
  api_key=os.getenv("API_KEY"),
76
  dataset_name="alpaca-flags"
77
  ),
78
- inputs=["text"],
79
- outputs=["text", "text", "text"],
80
  flagging_options=["Doğru", "Yanlış", "Belirsiz"]
81
  ).launch()
 
63
  rg.log(name=self.dataset_name, records=create_record(text, flag_option))
64
 
65
 
66
+ idx_input = gr.Slider(minimum=0, maximum=51564)
67
+ instruction = gr.Textbox(label="Talimat")
68
+ input_sample = gr.Textbox(label="Girdi")
69
+ response = gr.Textbox(label="Γ‡Δ±ktΔ±")
70
+
71
 
72
  gr.Interface(
73
  load_data,
 
79
  api_key=os.getenv("API_KEY"),
80
  dataset_name="alpaca-flags"
81
  ),
82
+ inputs=[idx_input],
83
+ outputs=[instruction, input_sample, response],
84
  flagging_options=["Doğru", "Yanlış", "Belirsiz"]
85
  ).launch()