gorkemozkaya commited on
Commit
cccae94
1 Parent(s): 27cb54d

fix global variable

Browse files
Files changed (1) hide show
  1. main.py +1 -0
main.py CHANGED
@@ -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