sal-maq commited on
Commit
0557a79
·
verified ·
1 Parent(s): 16ac246

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -16,7 +16,7 @@ client = anthropic.Anthropic(api_key=api_key)
16
  def generate_game_environment(environment_description):
17
  message = client.messages.create(
18
  model="claude-3-5-sonnet-20240620",
19
- max_tokens=150,
20
  temperature=0.7,
21
  system="You are a World Class Game Designer. Generate a detailed description of a game environment based on the input.",
22
  messages=[
@@ -36,7 +36,7 @@ def generate_game_environment(environment_description):
36
  def generate_protagonist(protagonist_description):
37
  message = client.messages.create(
38
  model="claude-3-5-sonnet-20240620",
39
- max_tokens=150,
40
  temperature=0.7,
41
  system="You are an expert in character creation. Generate a detailed description of a game protagonist based on the input.",
42
  messages=[
@@ -56,7 +56,7 @@ def generate_protagonist(protagonist_description):
56
  def generate_antagonist(antagonist_description):
57
  message = client.messages.create(
58
  model="claude-3-5-sonnet-20240620",
59
- max_tokens=150,
60
  temperature=0.7,
61
  system="You are an expert in villain creation. Generate a detailed description of a game antagonist based on the input.",
62
  messages=[
@@ -80,7 +80,7 @@ def generate_game_story(environment, protagonist, antagonist):
80
  f"Antagonist: {antagonist}")
81
  message = client.messages.create(
82
  model="claude-3-5-sonnet-20240620",
83
- max_tokens=150,
84
  temperature=0.7,
85
  system="You are a master storyteller. Generate a detailed game story based on the inputs provided.",
86
  messages=[
@@ -154,4 +154,4 @@ with col2:
154
  st.write(antagonist)
155
 
156
  # Footer
157
- st.write("**Developed by Salman Maqbool**")
 
16
  def generate_game_environment(environment_description):
17
  message = client.messages.create(
18
  model="claude-3-5-sonnet-20240620",
19
+ max_tokens=500,
20
  temperature=0.7,
21
  system="You are a World Class Game Designer. Generate a detailed description of a game environment based on the input.",
22
  messages=[
 
36
  def generate_protagonist(protagonist_description):
37
  message = client.messages.create(
38
  model="claude-3-5-sonnet-20240620",
39
+ max_tokens=500,
40
  temperature=0.7,
41
  system="You are an expert in character creation. Generate a detailed description of a game protagonist based on the input.",
42
  messages=[
 
56
  def generate_antagonist(antagonist_description):
57
  message = client.messages.create(
58
  model="claude-3-5-sonnet-20240620",
59
+ max_tokens=500,
60
  temperature=0.7,
61
  system="You are an expert in villain creation. Generate a detailed description of a game antagonist based on the input.",
62
  messages=[
 
80
  f"Antagonist: {antagonist}")
81
  message = client.messages.create(
82
  model="claude-3-5-sonnet-20240620",
83
+ max_tokens=500,
84
  temperature=0.7,
85
  system="You are a master storyteller. Generate a detailed game story based on the inputs provided.",
86
  messages=[
 
154
  st.write(antagonist)
155
 
156
  # Footer
157
+ st.write("**Developed by Salman Maqbool❤️**")