dianamclean commited on
Commit
59b0514
·
verified ·
1 Parent(s): 0266050

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -63,17 +63,9 @@ def my_ai_joke (arg1:str, arg2:int)-> str: #it's import to specify the return ty
63
  #Keep this format for the description / args / args description but feel free to modify the tool
64
  """
65
  Args:
66
- arg1:str The first argument, which should be a string. The topic or subject of the joke. For example, "programming", "elephants", etc.
67
  arg2:int The first argument, which should be an integer. The temperature for joke generation (higher values = more creative, typically 0-10).
68
- joke: str This is the joke that will be returned.
69
-
70
- # Example usage (replace with your desired topic and temperature)
71
- # topic = "programming"
72
- # temperature = 7 # Example temperature (scale from 0-10, generally)
73
- # joke = my_ai_joke(topic, temperature)
74
- # print(joke)
75
-
76
-
77
  """
78
  model.temperature = arg2
79
  joke = joke(arg1, model.temperature) #return a joke about arg1
 
63
  #Keep this format for the description / args / args description but feel free to modify the tool
64
  """
65
  Args:
66
+ arg1:str The first argument, which should be a string. The topic or subject of the joke.
67
  arg2:int The first argument, which should be an integer. The temperature for joke generation (higher values = more creative, typically 0-10).
68
+ joke: str This is the joke that will be returned.
 
 
 
 
 
 
 
 
69
  """
70
  model.temperature = arg2
71
  joke = joke(arg1, model.temperature) #return a joke about arg1