SitrakaForler commited on
Commit
0e751a5
·
1 Parent(s): 3c09b63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -19
app.py CHANGED
@@ -3,22 +3,3 @@ import streamlit as st
3
  x = st.slider('Select a value')
4
  st.write(x, 'squared is', x * x)
5
 
6
- import argilla as rg
7
- from datasets import load_dataset
8
-
9
- # You can find your Space URL behind the Embed this space button
10
- # Change it
11
- rg.init(
12
- api_url="https://dvilasuero-argilla-template-space.hf.space",
13
- api_key="team.apikey"
14
- )
15
-
16
- banking_ds = load_dataset("argilla/banking_sentiment_setfit", split="train")
17
-
18
- # Argilla expects labels in the annotation column
19
- banking_ds = banking_ds.rename_column("label", "annotation")
20
-
21
- # Build argilla dataset from datasets
22
- argilla_ds = rg.read_datasets(banking_ds, task="TextClassification")
23
-
24
- rg.log(argilla_ds, "banking_sentiment")
 
3
  x = st.slider('Select a value')
4
  st.write(x, 'squared is', x * x)
5