Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=[
|
79 |
-
outputs=[
|
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()
|