Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
gorkemozkaya
/
turkish_english_nmt
like
0
Runtime error
App
Files
Files
Community
gorkemozkaya
commited on
Jul 4, 2023
Commit
cccae94
•
1 Parent(s):
27cb54d
fix global variable
Browse files
Files changed (1)
hide
show
main.py
+1
-0
main.py
CHANGED
Viewed
@@ -3,6 +3,7 @@ import gradio as gr
3
counter = 0
4
5
def predict(inp):
6
counter += 1
7
return str(counter)
8
3
counter = 0
4
5
def predict(inp):
6
+
global counter
7
counter += 1
8
return str(counter)
9